
var index = require('./index');
var game = require('./game');

var cv = require('./cv');
var api = require('./api');
var photo = require('./photowall');

module.exports = function(app){

	//site router
	app.get('/', index.index);

	// API

	/* ---- Game Start ---- */
	app.get('/game/', game.index);
	app.get('/game/:game', game.game);
	/* ---- Game End ---- */

	/* ---- CV Start ---- */
	app.get('/cv/slide', cv.slide);
	app.get('/cv/', cv.index);
	/* ---- CV End ---- */

	app.get('/photowall', photo.index);

	/* ---- API Start ---- */
	app.all('/api/cvinfo', api.cvinfo);
	app.all('/api/gamelist', api.gamelist);
	/* ---- API End ---- */
};